<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\Database\Model\SoftDeletes;
use Hyperf\DbConnection\Model\Model;

class PlayletBind extends Model
{

    use SoftDeletes;


    protected ?string $table = 'playlet_bind';

    public function playlet()
    {
        return $this->hasOne(Playlet::class, 'id', 'playlet_id')->withTrashed()->select('id','name');
    }

}
